/*
 * @Description:
 * @Date: 2025-07-01 09:54:39
 * @LastEditTime: 2025-08-13 15:03:00
 */
import request from '@/utils/request'

class EquipmentTableApi {
  query(data) {
    return request({
      url: '/equipmenttable/list',
      method: 'get',
      data
    })
  }

  queryByCond(data, pageSize, pageNum) {
    return request({
      url: `/equipmenttable/queryByCond?pageSize=${pageSize}&pageNum=${pageNum}`,
      method: 'post',
      data
    })
  }
  add(data) {
    return request({
      url: '/equipmenttable/add',
      method: 'post',
      data
    })
  }
  importExcelData(data) {
    return request({
      url: '/equipmenttable/importExcelData',
      method: 'post',
      data
    })
  }
  update(data) {
    return request({
      url: '/equipmenttable/update',
      method: 'post',
      data
    })
  }
  delete(data) {
    return request({
      url: '/equipmenttable/delete',
      method: 'post',
      data
    })
  }
  getStatistics (data) {
    return request({
      url: '/statistics/info',
      method: 'post',
      data
    })
  }
  equipmenttableCheckDetail(id){
    return request({
      url: `/equipmentcheck/detail?id=${id}`,
      method: 'get',
    })
  }
  equipmentExport(data){
    return request({
      responseType: 'blob',
      url: `/export/equipmentExport`,
      method: 'post',
      data
    })
  }
}

export default new EquipmentTableApi()
